package com.sdy.healthcode.biz.mapper;

import com.sdy.healthcode.biz.dto.CodeCount;
import com.sdy.healthcode.biz.model.NcovArea;
import com.sdy.mvc.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 新冠肺炎分布区域表 Mapper 接口
 * </p>
 *
 * @author cgj
 * @since 2020-02-25
 */
public interface NcovAreaMapper extends BaseMapper<NcovArea> {

    @Select("SELECT area_code from bs_area where city_code = #{areaCode}")
    List<String> getCityCode(@Param("areaCode") String areaCode);

}
